package com.java01.apache.commons.collections;

import org.apache.commons.collections.IterableMap;
import org.apache.commons.collections.MapIterator;
import org.apache.commons.collections.map.HashedMap;

public class MapIteration {

	public static void main(String[] args) {
		IterableMap map = new HashedMap();

		map.put("a", "1");
		map.put("b", "2");
		map.put("c", "3");
		map.put("d", "4");

		MapIterator it = map.mapIterator();
		while (it.hasNext()) {
			Object key = it.next();
			Object value = it.getValue();
			System.out.println(key+"->"+value);
		}
	}
}
